Complexity Science - From Philosophical Foundations To Applications In Climate And Social Science